package com.crh.bean;

import java.io.Serializable;
import java.util.List;

/**
 * @author Chrui
 * @date 2018/10/15__13:23
 */
public class BootStrapPage implements Serializable {
    //每页多少个 pageSize，表示分页后，每页的信息个数
    private Integer limit;
    //偏移量，从数据库第几条记录开始
    private Integer rowoffset;
    //总数
    private Integer total;
    //页码
    private Integer pageNumber;
    //数据
    private List rows;

    public BootStrapPage() {
    }

    public BootStrapPage(Integer limit, Integer rowoffset, Integer total, Integer pageNumber, List rows) {
        this.limit = limit;
        this.rowoffset = rowoffset;
        this.total = total;
        this.pageNumber = pageNumber;
        this.rows = rows;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }

    public Integer getRowoffset() {
        return rowoffset;
    }

    public void setRowoffset(Integer rowoffset) {
        this.rowoffset = rowoffset;
    }

    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    public Integer getPageNumber() {
        return pageNumber;
    }

    public void setPageNumber(Integer pageNumber) {
        this.pageNumber = pageNumber;
    }

    public List getRows() {
        return rows;
    }

    public void setRows(List rows) {
        this.rows = rows;
    }
}
